home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 1995 July & August / cd No4 joystick No62.iso / pc / cadeaux / updates / daed12 / patch.bat < prev    next >
DOS Batch File  |  1995-06-08  |  1KB  |  70 lines

  1. @echo off
  2.  
  3. if not exist daedalus.ex_ goto errInstalled
  4. if not exist daedalus.exe goto errWrongDir
  5.  
  6. if not exist images\startup\daedclip.bmp goto errSetupMax
  7. if not exist images\startup\puzhlp.bmp goto errSetupMax
  8. if not exist sounds\startup.wav goto errSetupMax
  9.  
  10. echo Installing Daedalus Patch files ...
  11.  
  12. del daedalus.exe
  13. ren daedalus.ex_ daedalus.exe
  14. del mmengine.dll 
  15. ren mmengine.dl_ mmengine.dll
  16. del mmsound.dll 
  17. ren mmsound.dl_ mmsound.dll
  18.  
  19. attrib -r -h  *.nod
  20. del *.nod
  21. ren *.no_ *.nod
  22.  
  23. attrib -r -h images\startup\daedclip.bmp 
  24. attrib -r -h images\startup\puzhlp.bmp 
  25. attrib -r -h sounds\startup.wav 
  26.  
  27. copy daedclip.bm_ images\startup\daedclip.bmp > nul
  28. copy puzhlp.bm_   images\startup\puzhlp.bmp > nul
  29. copy startup.wa_  sounds\startup.wav > nul
  30.  
  31. attrib +r +h images\startup\daedclip.bmp 
  32. attrib +r +h images\startup\puzhlp.bmp 
  33. attrib +r +h sounds\startup.wav 
  34.  
  35. del puzhlp.bm_   
  36. del daedclip.bm_   
  37. del startup.wa_ 
  38.  
  39. attrib -r -h  *.txt
  40. del *.txt
  41. attrib -r -h *.mmt
  42. del *.mmt
  43. ren *.mm_ *.mmt
  44.  
  45. echo.
  46. echo      ...finished.
  47. echo.
  48. goto end
  49.  
  50. :errInstalled
  51. echo.
  52. echo      This patch has already been installed.
  53. echo.
  54. goto end
  55.  
  56. :errWrongDir
  57. echo.
  58. echo      This patch must be run from the Daedalus directory.
  59. echo.
  60. goto end
  61.  
  62. :errSetupMax
  63. echo.
  64. echo       You need to run setupMax before installing this patch.
  65. echo     
  66. goto end
  67.  
  68.  
  69. :end
  70.